home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #3
/
Amiga Plus CD - 1998 - No. 3.iso
/
pd
/
spiele
/
progammon2.3
/
dicetests
/
dicetest3
< prev
next >
Wrap
Text File
|
1997-12-08
|
1KB
|
31 lines
A pair of dice are being rolled 108 000 times to check for randomness.
This test takes about 33 seconds on a 68882 @ 33mhz. Each combination
should occur 1/36th of the time (i.e. 3000).
Test time = 33.68 seconds.
1 2 3 4 5 6
1 3073 2994 3076 3022 3071 2902
2 2970 3055 2992 2875 3015 3048
3 3080 2893 2995 3025 3009 3081
4 2990 3049 2956 2958 2988 3060
5 2933 2919 2935 2945 3072 3078
6 3030 3089 2910 2990 2997 2925
The same two times in a row. (i.e. 1/36 * 108 000)
Theory = 3000 Actual = 3013
Opposite but still the same two times in a row.
Theory = 3000 Actual = 2955
The same three times in a row. (i.e. 1/1296 * 108 000)
Theory = 83 Actual = 95
Doubles. (i.e. 1/6 of 108 000)
Theory = 18 000 Actual = 18078
Total of all rolls including doubles. (i.e. 8.167 * 108 000)
Theory = 882 000 Actual = 881427